package com.example.cms.service;

import java.util.List;

import com.example.cms.entity.Customer;
import com.example.cms.pojo.FileExport;
import com.example.cms.pojo.Mesagge;
import com.example.cms.pojo.QueryPage;

public interface CustomerService {
	final static int pageSize = 6;//定义分页大小

	public List<Customer> getAllCusAndOr();//获取所有客户的所有订单信息

	public  Integer countPageSize();//计算页码总数
	
	public List<Customer> getAllCus();//获取所有客户
	
	public List<Customer> getByPageCus(Integer page);//根据页码获取客户数据

	public Integer addCustomer(Customer customer);//添加客户

	public Integer updateCustomer(Customer customer);//修改客户

	public Mesagge NumDataNum(Mesagge mesagge);//查询有多少数据

	public Integer deletCustomer(Customer customer);//删除

	public List<Customer> LikeName(QueryPage customerName, Mesagge mesagge);//模糊查询

	public FileExport exportUserDTO(QueryPage mesagge)throws Exception;

}
